/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (xianliru@163.com)
 */

package com.pig4cloud.pig.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 机构
 *
 * @author xlr
 * @date 2020-04-22 15:46:32
 */
@Data
@TableName("t_agency")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "机构")
public class Agency extends Model<Agency> {
private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 机构全称
     */
    @ApiModelProperty(value="机构全称")
    private String fullName;
    /**
     * 机构简称
     */
    @ApiModelProperty(value="机构简称")
    private String shortName;
    /**
     * 一句话简介
     */
    @ApiModelProperty(value="一句话简介")
    private String briefAd;
    /**
     * logo
     */
    @ApiModelProperty(value="logo")
    private String logoUrl;
    /**
     * logo图片
     */
    @ApiModelProperty(value="logo图片")
    private String logoPictureUrl;
    /**
     * 营业执照图片地址
     */
    @ApiModelProperty(value="营业执照图片地址")
    private String businessLicense;
    /**
     * 服务电话
     */
    @ApiModelProperty(value="服务电话")
    private String servicePhone;
    /**
     * 机构简介
     */
    @ApiModelProperty(value="机构简介")
    private String description;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createDate;
    /**
     * 状态
     */
    @ApiModelProperty(value="状态")
    private Integer status;
    /**
     * 总部所在省份ID
     */
    @ApiModelProperty(value="总部所在省份ID")
    private Long provinceId;
    /**
     * 总部所在城市ID
     */
    @ApiModelProperty(value="总部所在城市ID")
    private Long cityId;
    /**
     * 总部所在省份名称
     */
    @ApiModelProperty(value="总部所在省份名称")
    private String provinceName;
    /**
     * 总部所在城市名称
     */
    @ApiModelProperty(value="总部所在城市名称")
    private String cityName;
    /**
     * 1默认机构2资源机构
     */
    @ApiModelProperty(value="1默认机构2资源机构")
    private Integer agencyType;
    /**
     * 类别：1自营 2加盟
     */
    @ApiModelProperty(value="类别：1自营 2加盟")
    private Integer type;
    /**
     * 级别
     */
    @ApiModelProperty(value="级别")
    private Integer level;
    /**
     * 二级域名访问地址
     */
    @ApiModelProperty(value="二级域名访问地址")
    private String subDomain;
    /**
     * 人工分帐比例
     */
    @ApiModelProperty(value="人工分帐比例")
    private Integer manualAccountRatio;
    /**
     * 机构统一折扣
     */
    @ApiModelProperty(value="机构统一折扣")
    private Double discount;
    /**
     * 删除时间
     */
    @ApiModelProperty(value="删除时间")
    private LocalDateTime deleteDate;
    /**
     * 代理级别：1总代 2二级
     */
    @ApiModelProperty(value="代理级别：1总代 2二级")
    private Integer agentClass;
    /**
     * 归属机构
     */
    @ApiModelProperty(value="归属机构")
    private Long belongAgencyId;
    }
